package com.yanggu.scala.chapater11.future

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future

object FutureDemo {

  def main(args: Array[String]): Unit = {
    val future1 = Future {
      println("future1执行了")
    }

    val future2 = Future {
      println("future2执行了")
    }

    val future3 = Future {
      println("future3执行了")
      10
    }

    val list: List[Future[_]] = List(future1, future2, future2)

  }

}
